package com.atguigu.common.exception;

/**
 * @Classname NoStockException
 * @Description TODO
 * @Date 2024/7/15 21:41
 * @Created by 369502594
 */
public class NoStockException extends RuntimeException{
    private Long skuId;

    public NoStockException(String msg) {
        super(msg);
    }
    public NoStockException(Long skuId) {
        super("商品id："+skuId+"没有足够的库存了");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

}
